package com.hd.controller;

import com.hd.controller.dto.ViewLiuChengDto;
import com.hd.pojo.Case;
import com.hd.service.CaseService;
import com.hd.tools.Pager;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;

/**
 * Created by 1 on 2017/12/1.
 */
@Controller
@RequestMapping("/director/viewLiuCheng")
public class ViewLiuChengController {

    @Resource
    private CaseService caseService;

    @ResponseBody
    @RequestMapping("/searchViewLiuCheng")
    public Pager searchViewLiuCheng(Integer offset, Integer limit, ViewLiuChengDto dto){
        Pager pager = caseService.searchViewLiuCheng(offset,limit,dto);
        System.out.println(pager);
        return pager;
    }

}
